/**
 * 超级管理员日志数据访问接口
 *
 * 开发人员：徐少洋
 * 开发时间：2025-11-21
 */
package com.pbl.repository;

import com.pbl.entity.SuperAdminLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SuperAdminLogRepository extends JpaRepository<SuperAdminLog, Long> {
    
    Page<SuperAdminLog> findBySuperAdmin_IdOrderByCreatedAtDesc(Long superAdminId, Pageable pageable);
    
    List<SuperAdminLog> findByTargetTypeAndTargetIdOrderByCreatedAtDesc(String targetType, Long targetId);
}

